<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('OaLeave/add')}">
        <div class="form-group">
            <label class="col-sm-2 control-label">请假类型</label>
            <div class="col-sm-10">
                <select name="type" class="chosen-select">
                    <option value="">请选择请假类型</option>
                    {volist name='$type_list' id='vo'}
                    <option value="{$key}">{$vo['name']}</option>
                    {/volist}
                </select>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">开始时间</label>
            <div class="col-sm-10">
                <input name="start_time" class="form-control datetimepicker" type="text" placeholder="请输入开始时间" required/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">结束时间</label>
            <div class="col-sm-10">
                <div class="input-group">
                    <div class="input-group-btn">
                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button" aria-expanded="false">选择请假时间 <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li><a class="date-add-interval" data-gid="start_time" data-sid="end_time" data-val="1" data-type="h" data-fmt="yyyy-MM-dd hh:mm:ss">1小时</a></li>
                            <li><a class="date-add-interval" data-gid="start_time" data-sid="end_time" data-val="2" data-type="h" data-fmt="yyyy-MM-dd hh:mm:ss">2小时</a></li>
                            <li><a class="date-add-interval" data-gid="start_time" data-sid="end_time" data-val="4" data-type="h" data-fmt="yyyy-MM-dd hh:mm:ss">4小时间</a></li>
                            <li><a class="date-add-interval" data-gid="start_time" data-sid="end_time" data-val="1" data-type="d" data-fmt="yyyy-MM-dd hh:mm:ss">一天</a></li>
                            <li><a class="date-add-interval" data-gid="start_time" data-sid="end_time" data-val="2" data-type="d" data-fmt="yyyy-MM-dd hh:mm:ss">二天</a></li>
                            <li><a class="date-add-interval" data-gid="start_time" data-sid="end_time" data-val="3" data-type="d" data-fmt="yyyy-MM-dd hh:mm:ss">三天</a></li>
                            <li><a class="date-add-interval" data-gid="start_time" data-sid="end_time" data-val="5" data-type="d" data-fmt="yyyy-MM-dd hh:mm:ss">五天</a></li>
                        </ul>
                    </div>
                    <input name="end_time" class="form-control datetimepicker" type="text" placeholder="选择结束时间"/>
                </div>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">请假内容</label>
            <div class="col-sm-10">
                <textarea class="form-control" name="reason"></textarea>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="admin@layout/save_btn"}
            </div>
        </div>
    </form>
</div>